<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template index/header}

<div class="x-nav" style="height: 45px;">
	<span class="layui-breadcrumb">
		<a>首页</a>
		<a>彩票管理</a>
		<a>从玩法管理</a>
	</span>
	<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
		<i class="layui-icon" style="line-height:30px">ဂ</i>
	</a>
	<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin:3px 5px 0 0;float:right" href="{U('lottery/play', array('operation'=>'playfollow_view', 'main_id' => $main_id, 'cate_id' => $cate_id))}">
		<i class="layui-icon" style="line-height:30px;">新增从玩法</i>
	</a>
</div>

<div class="x-body">
	<form class="layui-form ajaxform" action="?" method="post">
		<input type="hidden" name="m" value="{$m}" />
		<input type="hidden" name="c" value="{$c}" />
		<input type="hidden" name="a" value="" />
		<table class="layui-table">
			<thead>
				<tr>
					<th width="14%">主玩法</th>
					<th width="10%">玩法类别/名称</th>
					<th width="15%">玩法说明</th>
					<th width="5%">排序</th>
					<th width="15%">范例</th>
					<th width="5%">赢利</th>
					<th width="5%">状态</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
			{loop $data as $k => $v}
				<tr>
					<td>{$cateIdKey[$v['cate_id']]['name']}-{$mainIdKey[$v['main_id']]['title']}</td>
					<td>
						<font style="color: blue;">{$typeIdKey[$v['type_id']]['title']}</font>|<font style="color: green;">{$v['title']}</font><br/>
						(<font style="color: blue;">{$typeIdKey[$v['type_id']]['en_code']}</font><font style="color: green;">{$v['en_code']}</font>)
					</td>
					<td>
						<span style="width: 310px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;">{$v['explain']}</span></td>
					<td>{$v['sort']}</td>
					<td>
						<span style="width: 310px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;">
							{$v['example']}
						</span>
					</td>
					<td>{$v['winner_money']}</td>
					<td>{if $v['status'] == 1} 开放 {else} 关闭 {/if}</td>
					<td>
						<a href="{U('lottery/play', array('operation'=>'setPlayItem', 'id' => $v['id']))}">玩法选项</a> | 
						<a href="{U('lottery/play', array('operation'=>'playfollow_view', 'id' => $v['id'], 'main_id' => $main_id, 'cate_id' => $cate_id))}">修改</a> | 
						<a href="{U('lottery/play', array('operation'=>'playfollow_del', 'id' => $v['id']))}">删除</a>
					</td>
				</tr>
			{/loop}
			</tbody>
		</table>
		<div class="clearfix">
			<div id="pages" class="layui-laypage right">{$multi}</div>		
		</div>
	</form>
</div>

{template index/footer}